<?php
namespace App\Models\Order;
use App\Libs\Base\Constant;
class OrderComment extends \App\Libs\Base\BaseModel
{
    protected $__TABLE__ = 't_paile_order_comment';
	/**
	*	跳过检测了
	*/
    protected $img_url;
    protected $id;
    protected $ocic;
    protected $utime;

    public function setImgUrl($imgUrl)
    {
        $this->img_url = $imgUrl;
    }

    public function getImgUrl()
    {
        return $this->img_url;
    }
	public function beforeValidation()
	{
	  self::skipValidation(['num'] , $this );
	}

    public function initialize()
    {
        parent::initialize();
        $this->hasOne('id', 'App\Models\Order\OrderCommentImg', 'ocid', ['alias' => 'commentImg']);
        $this->belongsTo('uid', 'App\Models\User\User', 'id', ['alias' => 'user']);
    }


}
